package com.google.code.rapid.queue;

import java.sql.Timestamp;
/**
 *  消息对象
 * 
 * 	@author badqiu
 *	@see org.springframework.amqp.core.MessageProperties
 */
public class Message {
	private String messageId;
	
	private String routerKey;
	private byte[] body;
	private Timestamp timestamp;
	
	// TODO support time to live == ttl
	
	public String getRouterKey() {
		return routerKey;
	}
	public void setRouterKey(String routerKey) {
		this.routerKey = routerKey;
	}
	
	public String getMessageId() {
		return messageId;
	}
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}
	
	public byte[] getBody() {
		return body;
	}
	public void setBody(byte[] body) {
		this.body = body;
	}
	
}
